package com.xiaoda.service;

import com.xiaoda.entity.Comment;

import java.util.List;
import java.util.Map;

public interface CommentService {

    List<Comment> findAll();

    Comment findById(int id);

    Comment findByIdFull(int id);

    int commentArticleNum(int toAid);

    List<Comment> findAllByUid(String fromUid);

    int countCommentNum(String account);

    int addComment(Comment comment);

    List<Comment> findAllComments(int id);

    int deleteByUid(String uid);

    int deleteByAid(int aid);

    List<Comment> searchComment(Map<String, Object> map);

    int updateComment(Map<String, Object> map);

    int deleteComment(int id);

    int updateCommentById(int id);

}
